package cn.steam;

public enum LiveRobotOpenBoxUserSubTaskStatusEnum {

    /**
     * 任务状态
     */
    WAITING_START((byte) 1, "待开箱"),
    OPENED((byte) 2, "已开箱"),
    COMPLETE_OPENED((byte) 3, "开箱完成(含饰品信息)"),
    GIVE_OUT_ALREADY((byte) 3, "已发放"),
    BACK_UP_ALREADY((byte) 4, "已备库"),
    ;

    private byte value;
    private String message;

    LiveRobotOpenBoxUserSubTaskStatusEnum(byte value, String message) {
        this.value = value;
        this.message = message;
    }

    public static boolean isValid(int value) {
        for (LiveRobotOpenBoxUserSubTaskStatusEnum item : LiveRobotOpenBoxUserSubTaskStatusEnum.values()) {
            if (item.getValue() == value) {
                return true;
            }
        }
        return false;
    }

    public byte getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

}